package chapter04.Example11;

import javax.lang.model.element.Name;

interface Animal{
    int ID = 1;
    String name = "牧羊犬";
    void shout();
    static int getID() {
        return  Animal.ID;
    }
    public void info();
}
interface Action{
    public void eat();
}
class Dog implements Animal,Action{
    public void eat() {
        System.out.println("喜欢吃");
    }
    public void shout() {
        System.out.println("汪汪");
    }
    public void info() {
        String Name = "";
        System.out.println("名称："+Name);
    }
}
public class Example11 {
    public static void main(String[] args) {
        Dog dog = new Dog();
        dog.info();
        dog.shout();
        dog.eat();
    }
}
